// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'lib-flexible'
import 'vue2-toast/lib/toast.css';
import Toast from 'vue2-toast';
import store from '../src/store/store';
import util from  '../src/util/util'

import * as custom from './util/filter'

Object.keys(custom).forEach(key => {
  Vue.filter(key, custom[key])
})


import { Loadmore } from 'mint-ui';
Vue.component(Loadmore.name, Loadmore);

Vue.use(Toast);


Vue.config.productionTip = false
Vue.prototype.$util = util

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
